<?php

    $wizard = $mikron->Cache->getCache('infomat_wizard');

    if(!is_array($wizard))
    {
        $wizard = Array();
    }

    $data = $_GET;

    processWizardParameter($data, 'code');
    processWizardParameter($data, 'speccode');
    processWizardParameter($data, 'date');
    processWizardParameter($data, 'time');
    processWizardParameter($data, 'postspeciality');
    processWizardParameter($data, 'postfio');
    processWizardParameter($data, 'postdivision');
    processWizardParameter($data, 'place');
    processWizardParameter($data, 'ticketid');

    function processWizardParameter(&$data, $paramName)
    {
        global $wizard, $mikron;
        $value = $mikron->Tools->GetParam($data, $paramName, null);
        if(!is_null($value))
        {
            $wizard[$paramName] = $value;
        }
    }

    $mikron->Cache->setCache('infomat_wizard', $wizard);

?>